﻿using System;
using System.ComponentModel.DataAnnotations;
using System.Web.Mvc;

namespace JinRiAdmin.WebHost.ViewModels
{
    public class NewsModel
    {
        public Guid Id { get; set; }

        [Required]
        [Display(Name = "标题")]
        public string Title { get; set; }

        /// <summary>
        /// 0:新闻,1:公告
        /// </summary>
        public int Category { get; set; }

        [Required]
        [AllowHtml]
        [Display(Name = "内容")]
        public string Content { get; set; }

        public DateTime CreateTime { get; set; }
        public DateTime UpdateTime { get; set; }
}
}